home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: text marks & sliders
- Date: Thu, 30 Jun 1994 08:59:27 +1000
- From: Warwick Allison <warwick@cs.uq.oz.au>
- Precedence: bulk
-
- Ofir Gal wrote:
- >
- >Ken Hollis:
- >>I think my method is MUCH easier to do. You don't have to
- >>check for the rectangles, all you have to do is check to see if the
- >>mouse enters an editable object or not...
-
- >Does this mean you are constantly calling objc_find() ? This is OK for
- >modal dialogs but not very nice in non-modal ones.
-
- A slight improvement can be done: you can wait for the mouse to move (out
- of a 1x1 pixel area), then check. Still *extremely* inefficient in a multi-
- tasking env.
-
- The technique of maintaining 2 bounding rectangles is feasible, but not
- a trivial programming task. It could provide other benefits though,
- such as point-to-type, etc. but all these things are major changes to
- the GEM std interface. GEM just isn't designed to generate large
- numbers of mouse-in-area events. If Atari had provided a high-powered
- GEM library at the start, all this could have been implemented. I
- wonder even if DRI originally planned this, and that was the reason for
- providing the 2 rectangle areas (using 2, any number can be efficiently
- tracked... by extra library code).
-
- --
- Warwick
-